import request from '@/utils/request'

// 未处理
export function pending(query) {
  return request({
    url: '/appointment/anesthesia/pending',
    method: 'get',
    params: query
  })
}
// 已处理
export function done(query) {
  return request({
    url: '/appointment/anesthesia/done',
    method: 'get',
    params: query
  })
}

// 麻醉评估列表
export function pageList(query, current, pageSize) {
  return request({
    url: '/anaesthesiaAssessment/page/' + current + '/' + pageSize,
    method: 'get',
    params: query
  })
}

// 麻醉评估
export function saveAssessment(data) {
  return request({
    url: '/anaesthesiaAssessment/assessment',
    method: 'post',
    data: data
  })
}

// 根据预约单id获取麻醉评估信息
export function read(id) {
  return request({
    url: '/anaesthesiaAssessment/read/' + id,
    method: 'get'
  })
}
